package com.teemor.common.bean.utils;

import org.springframework.util.DigestUtils;

import java.util.UUID;

public class UUIDUtils {

	public static String generateUuid() {
		String uuid = UUID.randomUUID().toString().replace("-", "");
		return uuid;
	}

	public static String thirdIdTransforSysId(String thirdId, String thirdName) {
		String msg = thirdName + thirdId;
		return DigestUtils.md5DigestAsHex(msg.getBytes());
	}
}
